all: q1 q2-1-demo q2-1-1 q2-1-2 q2-2-demo q2-2-1 q2-2-2 q3-demo q3
q1:
	gcc q1.c -lm -o q1
q2-1-demo:
	gcc q2-1-demo.c uniform.c expon.c -lm -o q2-1-demo
q2-1-1:
	gcc q2-1-1.c uniform.c expon.c -lm -o q2-1-1
q2-1-2:
	gcc q2-1-2.c uniform.c expon.c -lm -o q2-1-2
q2-2-demo:
	gcc q2-2-demo.c uniform.c expon.c -lm -o q2-2-demo
q2-2-1:
	gcc q2-2-1.c uniform.c expon.c -lm -o q2-2-1
q2-2-2:
	gcc q2-2-2.c uniform.c expon.c -lm -o q2-2-2
q3-demo:
	gcc q3-demo.c uniform.c expon.c -lm -o q3-demo
q3:
	gcc q3.c uniform.c expon.c -lm -o q3
clean:
	rm -f q1 q2-1-demo q2-1-1 q2-1-2 q2-2-demo q2-2-1 q2-2-2 q3-demo q3